Optimal. Leaf size=15 \[ \frac{\log \left (b+c x^n\right )}{n}+\log (x) \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0610835, antiderivative size = 15, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.095 \[ \frac{\log \left (b+c x^n\right )}{n}+\log (x) \]
Antiderivative was successfully verified.
[In] Int[(b + 2*c*x^n)/(x*(b + c*x^n)),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 9.99522, size = 15, normalized size = 1. \[ \frac{\log{\left (x^{n} \right )}}{n} + \frac{\log{\left (b + c x^{n} \right )}}{n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((b+2*c*x**n)/x/(b+c*x**n),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0222078, size = 15, normalized size = 1. \[ \frac{\log \left (b+c x^n\right )}{n}+\log (x) \]
Antiderivative was successfully verified.
[In] Integrate[(b + 2*c*x^n)/(x*(b + c*x^n)),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.003, size = 17, normalized size = 1.1 \[{\frac{\ln \left ({x}^{n} \left ( b+c{x}^{n} \right ) \right ) }{n}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((b+2*c*x^n)/x/(b+c*x^n),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.44198, size = 63, normalized size = 4.2 \[ b{\left (\frac{\log \left (x\right )}{b} - \frac{\log \left (\frac{c x^{n} + b}{c}\right )}{b n}\right )} + \frac{2 \, \log \left (\frac{c x^{n} + b}{c}\right )}{n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((2*c*x^n + b)/((c*x^n + b)*x),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.232564, size = 23, normalized size = 1.53 \[ \frac{n \log \left (x\right ) + \log \left (c x^{n} + b\right )}{n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((2*c*x^n + b)/((c*x^n + b)*x),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 0.975108, size = 29, normalized size = 1.93 \[ \begin{cases} \log{\left (x \right )} & \text{for}\: c = 0 \wedge n = 0 \\\frac{\left (b + 2 c\right ) \log{\left (x \right )}}{b + c} & \text{for}\: n = 0 \\\log{\left (x \right )} & \text{for}\: c = 0 \\\log{\left (x \right )} + \frac{\log{\left (\frac{b}{c} + x^{n} \right )}}{n} & \text{otherwise} \end{cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b+2*c*x**n)/x/(b+c*x**n),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{2 \, c x^{n} + b}{{\left (c x^{n} + b\right )} x}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((2*c*x^n + b)/((c*x^n + b)*x),x, algorithm="giac")
[Out]